﻿using System;

namespace Notoric.ViewModel
{
    /// <summary>
    /// A common interface for elements that have position in a 2-dimensional coordinate space.
    /// </summary>
    public interface IPositionable
    {
        /// <summary>
        /// Gets or sets the position of the left element's edge.
        /// </summary>
        /// <value>
        /// <para>
        /// Type: <see cref="Double"/>
        /// </para>
        /// <para>
        /// The distance (in device independent pixels) of the left element's edge
        /// from the origin of coordinates.
        /// </para>
        /// </value>
        double Left
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the position of the top element's edge.
        /// </summary>
        /// <value>
        /// <para>
        /// Type: <see cref="Double"/>
        /// </para>
        /// <para>
        /// The distance (in device independent pixels) of the top element's edge
        /// from the origin of coordinates.
        /// </para>
        /// </value>
        double Top
        {
            get;
            set;
        }
    }
}
